<?php
    $venue_id = $_GET["venue_id"];
    $round_name = $_GET['round_name'];
    $round_id = $_GET['round_id'];
    $debug = $_GET["debug"];
if(isset($debug)){
    echo <<<HTML
        <script>
        window.location.href = "http://www.12301.cc/pft_show_seat.html?m=round&venue_id="+$venue_id+"&round_id="+$round_id+"&round_name="+$round_name;
        </script>
HTML;
}
?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/pft_show/css/common.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/pft_show/css/seat.css"/>
<!--[if lt IE 7]><div id="seatContainer" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 seatContainer commonRigContainer"> <![endif]-->
<!--[if IE 7]><div id="seatContainer" class="lt-ie10 lt-ie9 lt-ie8 ie7 seatContainer commonRigContainer"> <![endif]-->
<!--[if IE 8]><div id="seatContainer" class="lt-ie10 lt-ie9 ie8 seatContainer commonRigContainer"> <![endif]-->
<!--[if IE 9]><div id="seatContainer" class="lt-ie10 ie9 seatContainer commonRigContainer"><![endif]-->
<!--[if gt IE 9]><!--><div id="guanContainer" class="guanContainer commonRigContainer"> <!--<![endif]-->
    <div id="venuenameHead" class="venuenameHead">
        <input id="venueIdHidInp" type="hidden" value="<?=$_GET['venue_id']?>"/>
        <p class="t">
            <span id="venuename" class="venuename">场馆名称</span>
            <span style="font-size:16px; margin-left:15px;" class="changciname"><?=urldecode($_GET['round_name'])?></span>
        </p>
    </div>
    <div id="createSeatWrap" class="createSeatWrap wrapBox">
<!--        <div id="createHeadWrap" class="formGroup create">场次:</div>-->
        <ul style="background-color:#fff" id="areaHeadWrap" class="areaHeadWrap"></ul>
        <div id="stageWrap" class="stageWrap">
            <div id="stageUlW" class="stageUlW"></div>
        </div>
        <div class="btnGroup"><a id="saveBtn" class="saveBtn" href="javascript:void(0)">保存</a></div>
    </div>
</div>

<!--右键弹出菜单-->
<div id="contextMenuWrap" class="contextMenuWrap">
    <div id="contextMenuUl" class="menuUl contextMenuUl">
        <ul id="menuGroupArea" class="menuGroup area"></ul>
        <ul id="menuGroupDisable" class="menuGroup disable">
            <li class="menuLi setDisable" data-areaid="-1" data-state="0" data-color="cff3ff">无座</li>
        </ul>
        <ul id="menuGroupState" class="menuGroup state">
            <li class="menuLi menuLiState menuLiReserved">预留</li>
            <li class="menuLi menuLiState menuLiSaved">已出售</li>
        </ul>
        <ul class="setGroup">
            <li id="setVenueMenuLi" class="menuLi setVenueMenuLi"><span class="t">设置座位号</span><i class="iconfont">&#xe67c;</i></li>
        </ul>
    </div>
    <div id="setSeatWrap" class="setSeatWrap">
        <div class="con">
            <div class="seatBox box">
                <span class="lt">行号：</span>
                <span class="rt"><input class="formInp setSeatInput" type="text" name="" id="setSeat_row_input"/></span>
            </div>
            <div class="seatBox box">
                <span class="lt">坐号：</span>
                <span class="rt"><input class="formInp setSeatInput" type="text" name="" id="setSeat_col_input"/></span>
            </div>
        </div>
        <div class="butLine">
            <span id="modifySeatBtn" class="btn centain">确定</span>
        </div>
    </div>
</div>
<!--分区列表行-->
<script id="areaListTpl" type="text/template">
    <li id="areaList_li_<%=zone_id%>" class="areaLi" data-areaid="<%=zone_id%>" data-color="<%=zone_color%>">
        <span class="color" style="background-color:#<%=zone_color%>"></span><span class="t"><%=zone_name%></span>
    </li>
</script>
<!--右键菜单模板-->
<script id="menuAreaListTpl" type="text/template">
    <li class="menuLi" data-state="1" data-areaid="<%=zone_id%>" data-color="<%=zone_color%>">
        归为<span style="margin-left:5px" class="t"><%=zone_name%></span>
    </li>
</script>
<!--场馆坐位box模板-->
<script id="stageBoxTpl" type="text/template">
    <li id="stageBox_<%=row%>_<%=col%>" class="stageBox stageLi box box_<%=state%>"
        data-areaid="<%=area_id%>"
        data-row="<%=row%>"
        data-col="<%=col%>"
        data-state="<%=state%>"
        data-seat="<%=seat%>"
        data-seatid="<%=seat_id%>"
        style="width:<%=width%>px; height:<%=height%>px; line-height:<%=height%>px">
        <i class="iconfont">&#xe62c;</i><span class="t"></span>
    </li>
</script>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/ajax.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/pft_show/js/contextmenu.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/pft_show/js/Stage.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/pft_show/js/seat.js"></script>